package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiT_member_partner;
import cn.com.api.mapper.base.T_member_partnerMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiT_member_partnerMapper extends T_member_partnerMapperBase {

	public List<ApiT_member_partner> findT_member_partnersByMapListPage(@Param("map") Map map,
			@Param("page") PageInfo page);

	// 根据条件查询核伙人的记录集
	public List<Map<String, Object>> findMember_partnersByMap(@Param("map") Map map);

	public Integer getNormalPartnerCount(@Param("user_id") String user_id);

	// 获取金牌核伙人，用于轮询添加没有推荐人的企业主
	public List<ApiT_member_partner> findGoldPartnerListByArea(@Param("area") String area);

	// 获取金牌核伙人分布在哪些地区
	public List<ApiT_member_partner> findGoldPartnerAreaList();

	public Integer getGoldPartnerCount(@Param("status") Integer status, @Param("partnerid") String partnerid);

	// 查询合伙人信息
	public ApiT_member_partner findTmemberpartnersByMap(@Param("map") Map paramMap);
}
